package com.designpatternspart2.creationaldesignpatterns.prototypepattern;

/**
 * File Name: Dog.java
 * Version:
 * Description:
 * Package: com.designpatternspart2.prototypepattern
 * Author: Lance
 * Date: Apr 26, 2012
 */
public class Dog implements Prototype
{

    String sound;

    public Dog(String sound)
    {
        this.sound = sound;
    }

    @Override
    public Prototype doClone()
    {
        return new Dog(sound);
    }

    @Override
    public String toString()
    {
        return "This dog says " + sound;
    }
}
